package org.ecside.easydataaccess;

public class SqlParameter {
	private String name;
	private Object value;
	private String type;
	private int index;
	
	public SqlParameter(String name,Object value) {
		this.name=name;
		this.value=value;
		this.type=EasyDataAccessConstants.DEFAULT_TYPE;
	}
	public SqlParameter(String name,Object value,String type) {
		this(name,value);
		this.type=type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Object getValue() {
		return value;
	}
	public void setValue(Object value) {
		this.value = value;
	}
	public String getValueAsString() {
		return String.valueOf(value);
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	
}
